import { imageFileFilter } from '@/app/modules/upload/filters/file-filter'
import { FileInterceptor } from '@nestjs/platform-express'

/**
 * 用户头像上传拦截器
 */
export const AvatarInterceptor = FileInterceptor("avatar", {
  fileFilter: imageFileFilter
})